<template>
  <el-container>
    <el-header height="40px">Header</el-header>
    <el-container class="content-main">
      <el-aside width="200px">
        <RightAside></RightAside>
      </el-aside>
      <el-main>
        <Canvas></Canvas>
      </el-main>
      <el-aside width="340px">
        <Config></Config>
      </el-aside>
    </el-container>
  </el-container>
</template>

<script>
import Header from './components/layout/header'
import Canvas from './components/layout/canvas'
import RightAside from './components/layout/right_aside'
import Config from './components/layout/config'

export default {
  name: "DatavEditor",
  components: {
    Header,
    Canvas,
    RightAside,
    Config
  }
}
</script>

<style>
.el-header, .el-footer {
  background-color: #001529;
  color: #fff;
  line-height: 40px;
}

.el-aside {
  background-color: #001529;
}

.el-main {
  padding:0;
  height: 100%;
  overflow: hidden;
}

.el-container {
  height: 100%;
}
.content-main{
  height: calc(100% - 40px);
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}


.ant-layout {
  width: 100%;
  height: 100%;
}

#components-layout-demo-basic {
  text-align: center;
}

.ant-layout-header {
  color: #fff;
  height: 45px;
  padding: 0 25px;
}

.ant-layout-sider {

  color: #fff;
}

.ant-layout-sider.operation-sider {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  height: 100%;
  overflow: auto;
}

.ant-layout-content {
  color: #fff;
  min-height: 120px;
}

.ant-layout {
  margin-bottom: 48px;
}

.ant-layout:last-child {
  margin: 0;
}

/*修改滚动条样式*/
.scroll::-webkit-scrollbar,
.el-tabs__content::-webkit-scrollbar
 {
  width: 4px;
  height: 4px;
  /**/
}

.scroll::-webkit-scrollbar-track,
.el-tabs__content::-webkit-scrollbar-track,
.scroll .ant-layout-sider-children::-webkit-scrollbar-track {
  background: #001529;
  border-radius: 2px;
}

.scroll::-webkit-scrollbar-thumb,
.el-tabs__content::-webkit-scrollbar-thumb,
.scroll .ant-layout-sider-children::-webkit-scrollbar-thumb {
  background: rgb(29, 90, 178);
  border-radius: 10px;
}

.scroll::-webkit-scrollbar-thumb:hover,
.el-tabs__content::-webkit-scrollbar-thumb:hover,
.scroll .ant-layout-sider-children::-webkit-scrollbar-thumb:hover {
  background: #333;
}

.scroll::-webkit-scrollbar-corner,
.el-tabs__content::-webkit-scrollbar-corner,
.scroll .ant-layout-sider-children::-webkit-scrollbar-corner {
  background: #179a16;
}
</style>